package top.zsyle.product.mapper;

import org.apache.ibatis.annotations.Param;
import top.zsyle.product.domain.Product;
import top.zsyle.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zsy
 * @since 2022-12-09
 */
public interface ProductMapper extends BaseMapper<Product> {

    List<Product> findByIdsAndState(@Param("ids") List<Long> ids,@Param("state") Integer state);

    void batchUpdate(List<Long> productIds);

    void offsale(List<Long> productIds);
}
